package dungeonAdventure;

public class Hero 
{
	private int HP,HPO =0,VPO =0,CP=0;
	private String hero;
	Hero(String name)
	{
		this.hero = name;
		this.setHP(100);
	}
	private void setHP(int number)
	{
		this.HP = number;
	}
	public int getHP()
	{
		return this.HP;
	}
	/**
	 * 
	 * @param amount signed integer for both decrease and increase of hp
	 */
	public void changeHP(int amount)//
	{
		this.HP += amount;
	}
	/**
	 * 
	 * @param amount signed integer for both decrease and increase of heal Potions
	 */
	public void changeHPO(int amount)
	{
		this.HPO += amount;
	}
	/**
	 * 
	 * @param amount signed integer for both decrease and increase of vision Potions
	 */
	public void changeVPO(int amount)
	{
		this.VPO += amount;
	}
	public void changeCP()
	{
		this.CP++;
	}
	@Override
	public String toString()
	{
		String something = "";
		something += "Name: "+this.getHP()+"\n";
		something += "Hit Points: "+this.HP+"\n";
		something += "Total Healing Potions: "+this.HPO+"\n";
		something += "Total Vision Potions: "+this.VPO+"\n";
		something += "Total Crown Pieces: "+this.CP+"\n";
		return something;
	}
	//TODO add movement method
	
}
